package oop_polymorphism.a03polymorphism03;

public class Test {
    public static void main(String[] args) {
        Person p1 = new Person("张三",18);
        String something = "骨头";
        Dog dog = new Dog(2,"黑");
        p1.keepPet(dog,something);


        Person p2 = new Person("李四",20);
        Cat cat = new Cat(3,"灰");
        p2.keepPet(cat,"鱼");
    }
}
